/* $Id: UserReqDomainObjectManagerImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.domain.manager.provider;

import java.util.Collection;

import ae.pcfc.etks.online.common.dao.UserReqDAO;
import ae.pcfc.etks.online.common.domain.UserReq;
import ae.pcfc.etks.online.common.domain.manager.UserReqDomainObjectManager;
import ae.pcfc.etks.online.common.exception.LookupException;
import ae.pcfc.etks.online.common.exception.PersistenceException;

public class UserReqDomainObjectManagerImpl implements UserReqDomainObjectManager {

	private UserReqDAO userReqDAO;

	/**
	 * setUserReqDAO
	 * 
	 * @param userReqDAO
	 * void
	 */
	public void setUserReqDAO(UserReqDAO userReqDAO) {
		this.userReqDAO = userReqDAO;
	}

	/**
	 * add
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#add(java.lang.Object)
	 * 
	 */
	public <T> void add(T obj) throws PersistenceException {

		this.userReqDAO.add((UserReq) obj);
	}

	/**
	 * update
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#update(java.lang.Object)
	 * 
	 */
	public <T> void update(T obj) throws PersistenceException {
		// TODO Auto-generated method stub

	}

	/**
	 * delete
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#delete(java.lang.Object)
	 * 
	 */
	public <T> void delete(T obj) throws PersistenceException {
		// TODO Auto-generated method stub

	}

	/**
	 * findByPrimaryKey
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findByPrimaryKey(java.lang.String)
	 * 
	 */
	public <T> T findByPrimaryKey(String id) throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findAll
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.BaseDomainObjectManager#findAll()
	 * 
	 */
	public <T> Collection<T> findAll() throws LookupException {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * findByApplicationId
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserReqDomainObjectManager#findByApplicationId(java.lang.String)
	 * 
	 */
	public UserReq findByApplicationId(String applicationId) {

		return this.userReqDAO.findByApplicationId(applicationId);
	}

	/**
	 * findByUserName
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserReqDomainObjectManager#findByUserName(java.lang.String)
	 * 
	 */
	public UserReq findByUserName(String userName) throws LookupException {
		return this.userReqDAO.findByUserName(userName);
	}

	/**
	 * findByEmail
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserReqDomainObjectManager#findByEmail(java.lang.String)
	 * 
	 */
	public UserReq findByEmail(String email) throws LookupException {
		return this.userReqDAO.findByEmail(email);
	}

	/**
	 * validateByPropertyName
	 * 
	 * @see ae.pcfc.etks.online.common.domain.manager.UserReqDomainObjectManager#validateByPropertyName(java.lang.String, java.lang.String)
	 * 
	 */
	public boolean validateByPropertyName(String strPropertyName,
			String strPropertyValue) {
		// TODO Auto-generated method stub
		return this.userReqDAO.validateByPropertyName(strPropertyName, strPropertyValue);
	}

}
